import request from '@/utils/request'

// 查询查看排班表列表
export function listSkd(query) {
  return request({
    url: '/sms/skd/list',
    method: 'get',
    params: query
  })
}

// 根据条件查询排班的看诊医生
export function listSkdTerm(query) {
  return request({
    url: '/sms/skd/getSkdVoList',
    method: 'get',
    params: query
  })
}

// 查询查看排班表详细
export function getSkd(id) {
  return request({
    url: '/sms/skd/' + id,
    method: 'get'
  })
}

// 新增查看排班表
export function addSkd(data) {
  return request({
    url: '/sms/skd',
    method: 'post',
    data: data
  })
}

// 修改查看排班表
export function updateSkd(data) {
  return request({
    url: '/sms/skd',
    method: 'put',
    data: data
  })
}

// 删除查看排班表
export function delSkd(id) {
  return request({
    url: '/sms/skd/' + id,
    method: 'delete'
  })
}

// 导出查看排班表
export function exportSkd(query) {
  return request({
    url: '/sms/skd/export',
    method: 'get',
    params: query
  })
}
